package com.qianfeng.mybatis.one2one.pojo;


import java.util.Date;

public class Passenger {

  private Long pid;
  private String name;
  private String sex;
  private Date birthday;

  private Passport passport;

  public Passport getPassport() {
    return passport;
  }

  public void setPassport(Passport passport) {
    this.passport = passport;
  }

  public Long getPid() {
    return pid;
  }

  public void setPid(Long pid) {
    this.pid = pid;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }


  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  @Override
  public String toString() {
    return "Passenger{" +
            "pid=" + pid +
            ", name='" + name + '\'' +
            ", sex='" + sex + '\'' +
            ", birthday=" + birthday +
            ", passport=" + passport +
            '}';
  }
}
